package com.ltmall.api.manager.impl;

import com.ltmall.api.bean.Comment;
import com.ltmall.api.dao.IGoodsCommentDAO;
import com.ltmall.api.manager.GoodsCommentManager;
import com.ltmall.api.util.PageUtil;

import java.util.List;

public class GoodsCommentManagerImpl implements GoodsCommentManager {

    private IGoodsCommentDAO goodsCommentDAO;

    @Override
    public List<Comment> getComment(List<Integer> shops, PageUtil page) {
        return goodsCommentDAO.getComment(shops, page);
    }

    @Override
    public boolean updateComment(Comment order) {
        return goodsCommentDAO.updateComment(order);
    }

    @Override
    public boolean deleteComment(String commentId) {
        return goodsCommentDAO.deleteComment(commentId);
    }

    @Override
    public boolean insertComment(Comment order) {
        return goodsCommentDAO.insertComment(order);
    }

    /**
     * @param goodsCommentDAO the goodsCommentDAO to set
     */
    public void setGoodsCommentDAO(IGoodsCommentDAO goodsCommentDAO) {
        this.goodsCommentDAO = goodsCommentDAO;
    }

}
